package com.tcu.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tcu.user.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper extends BaseMapper<User> {
//    根据用户名 来查询 该用户是否存在
    @Select("select * from sbn_user where username= #{username} limit 1")
    User findByName(String username);
}
